{include file="public/head"}
<body>
    <div class="layui-card layadmin-header">
        {$breadcrumb|raw}
    </div>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">{$title|default=''}</div>
                    <div class="layui-card-body">
                        <form action="{:url('')}" class="layui-form" lay-filter="edit-form" method="post">
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置名称</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[name]" lay-verify="required" value="{$info.name|default=''}" autocomplete="off" placeholder="用于程序调用" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置标题</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[title]" lay-verify="required" value="{$info.title|default=''}" autocomplete="off" placeholder="用于后台显示" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置类型</label>
                                <div class="layui-input-inline">
                                    <select name="post[type]">
                                        {volist name='config_type_list' id='type'}
                                        <option value="{$key}" {notempty name="info"}{eq name="info.type" value="$key"} selected {/eq}{/notempty}>{$type}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置分组</label>
                                <div class="layui-input-inline">
                                    <select name="post[group]">
                                        <option value="0">不分组</option>
                                        {volist name='config_group_list' id='group'}
                                        <option value="{$key}" {notempty name="info"}{eq name="info.group" value="$key"} selected {/eq}{/notempty}>{$group}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置选项</label>
                                <div class="layui-input-block">
                                    <textarea name="post[extra]" placeholder="枚举|多选|单选需要配置此项" class="layui-textarea">{$info.extra|default=''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置取值</label>
                                <div class="layui-input-block">
                                    <textarea name="post[value]" placeholder="请输入内容" class="layui-textarea">{$info.value|default=''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">描述</label>
                                <div class="layui-input-block">
                                    <textarea name="post[describe]" placeholder="请输入描述内容" class="layui-textarea">{$info.describe|default=''}</textarea>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">配置排序</label>
                                <div class="layui-input-block">
                                    <input type="text" name="post[sort]" lay-verify="required" value="{$info.sort|default='0'}" autocomplete="off" placeholder="请输入配置排序" class="layui-input">
                                </div>
                            </div>
                            <input type="hidden" name="post[id]" value="{$info.id|default=0}">
                            <div class="layui-form-item layui-layout-admin">
                                <div class="layui-input-block">
                                    <div class="layui-footer" style="left: 0;">
                                        <button class="layui-btn" lay-submit="" lay-filter="submit-form">立即提交</button>
                                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {include file="public/script"}
</body>
</html>